package cn.com.megan.drawlots.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 抽签记录表
 * </p>
 *
 * @author megan
 * @since 2025-05-15 09:09:59
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("draw_records")
@ApiModel(value = "DrawRecords对象", description = "抽签记录表")
public class DrawRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键，记录唯一标识")
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @ApiModelProperty("用户ID，关联用户表")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("类型(lucky_draw:抽签, lucky_wheel:幸运转盘)")
    @TableField("type")
    private String type;

    @ApiModelProperty("关联ID(转盘ID或抽签配置ID)")
    @TableField("reference_id")
    private Integer referenceId;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("结果")
    @TableField("result")
    private String result;

    @ApiModelProperty("选项JSON数据")
    @TableField("options")
    private String options;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
